//package com.info.zhiduoduo.admin.controller;
//
//import com.info.zhiduoduo.admin.model.formbean.foreign.*;
//import com.info.zhiduoduo.admin.service.ForeignProjectInvoiceService;
//import com.info.zhiduoduo.common.constants.SmartResult;
//import com.info.zhiduoduo.common.formbean.BaseSimpleFormBean;
//import com.info.zhiduoduo.core.service.common.DocService;
//import com.info.zhiduoduo.repository.dto.foreign.ForeignProjectInvoiceListDto;
//import com.info.zhiduoduo.repository.dto.foreign.MergeInvoiceListDto;
//import io.swagger.annotations.Api;
//import io.swagger.annotations.ApiOperation;
//import org.springframework.beans.factory.annotation.Autowired;
//import org.springframework.web.bind.annotation.*;
//
//import javax.servlet.http.HttpServletResponse;
//
///**
// * @program: zhiduoduo
// * @author: LiTong
// * @create: 2020-11-11 19:18
// **/
//@Api(tags = "第三方项目发票")
//@RestController
//@RequestMapping("/foreignInvoice")
//public class ForeignProjectInvoiceController {
//
//    @Autowired
//    ForeignProjectInvoiceService foreignProjectInvoiceService;
//
//    @Autowired
//    DocService docService;
//
//    @ApiOperation("第三方项目发票列表")
//    @PostMapping("/invoiceList")
//    public SmartResult<ForeignProjectInvoiceListDto> foreignInvoiceList(@RequestBody BaseSimpleFormBean<ForeignProjectInvoiceFrombean> formBean) {
//        return foreignProjectInvoiceService.foreignInvoice(formBean);
//    }
//
//    @ApiOperation("申请开票")
//    @PostMapping("/applyForInvoice")
//    public SmartResult applyForInvoice(@RequestBody BaseSimpleFormBean<ApplyForForeignInvoiceFromBean> formBean) {
//        return foreignProjectInvoiceService.applyForInvoice(formBean);
//    }
//
//    @ApiOperation("下载第三方项目开票合同")
//    @GetMapping("/downloadForeignContract")
//    public void downloadForeignContract(HttpServletResponse response, @RequestParam int invoiceId) {
//        docService.downloadForeignContract(response,invoiceId);
//    }
//
//    @ApiOperation("完成开票")
//    @PostMapping("/completeInvoice")
//    public SmartResult completeInvoice(@RequestBody BaseSimpleFormBean<CompleteForeignInvoiceFromBean> formBean){
//        return foreignProjectInvoiceService.completeInvoice(formBean);
//    }
//
//    @ApiOperation("多条合并申请开票")
//    @PostMapping("/mergeApplyForInvoice")
//    public SmartResult mergeApplyForInvoice(@RequestBody BaseSimpleFormBean<MergeApplyForInvoiceFormBean> formBean) {
//        return foreignProjectInvoiceService.mergeApplyForInvoice(formBean);
//    }
//
//    @ApiOperation("第三方项目发票列表-合并开票列表")
//    @PostMapping("/mergeInvoiceList")
//    public SmartResult<MergeInvoiceListDto> mergeInvoiceList(@RequestBody BaseSimpleFormBean<MergeInvoiceFrombean> formBean) {
//        return foreignProjectInvoiceService.mergeInvoiceList(formBean);
//    }
//
//    @ApiOperation("查看关联的所有单条发票信息")
//    @PostMapping("/queryAllRelationInvoice")
//    public SmartResult queryAllRelationInvoice(@RequestBody BaseSimpleFormBean<Integer> formBean) {
//        return foreignProjectInvoiceService.queryAllRelationInvoice(formBean);
//    }
//
//    @ApiOperation(value = "导出合并开票的明细", tags = "下载excel")
//    @GetMapping("/exportMergeInvoiceInfo")
//    public void exportMergeInvoiceInfo(HttpServletResponse response,int id){
//        foreignProjectInvoiceService.exportMergeInvoiceInfo(response,id);
//    }
//
//
//}
